package com.smartcampusbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartcampusbackend.model.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface MajorMapper extends BaseMapper<Major> {
    
    @Select("SELECT * FROM major WHERE department_id = #{departmentId}")
    List<Major> selectByDepartmentId(Long departmentId);
} 